<?php
include_once '../common_mbs.inc.php';
include_once '../smarty.inc.php';

//判断访问权限
$admin_index_module_obj = new osgh_admin_index_module_cls();
$is_warrant = $admin_index_module_obj->is_have_warrant($_ADMIN_ID,'consulting_list');
if(!$is_warrant) tcmc_cls::ShowMsg("没有权限访问！", "../index_body.html");

$act = trim($_INPUT['action']);
$consulting_id = $_INPUT['consulting_id'];
$consulting_obj  = new consulting_cls();
$consulting_info = $consulting_obj->get_consulting_info($consulting_id);
$smarty->assign('consulting_arr',$consulting_info);

if($act =='check')
{	
    $reply_obj = new consulting_reply_cls();
	$replay = $reply_obj->get_consulting_reply_info($consulting_id);
	$smarty->assign('act','check');
	$smarty->assign('replay',$replay);
}

$smarty->display('expand/replay_consulting.tpl');

?>
